import { Module } from '@nestjs/common';
import { UserService } from './user.service';
import { UserController } from './user.controller';
import { TypeOrmModule } from '@nestjs/typeorm';
import { User } from './entities/user.entity';
import { Role } from './entities/role.entity';
import { Permission } from './entities/permission.entity';
import { Blog } from 'src/blog/entities/blog.entity';

@Module({
  // 导出repository需要再这里引入typeOrmModule
  imports: [TypeOrmModule.forFeature([User, Role, Permission, Blog])],
  providers: [UserService],
  controllers: [UserController]
})
export class UserModule {}
